<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<sql:query var="rs" dataSource="jdbc/TestDB">
select * from blog
</sql:query>
<%
	  System.out.println(System.getProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY));
	%>
<html>
<head>
<title>DB Test</title>
</head>
<body>
	
	<h2>Results</h2>
	<c:forEach var="row" items="${rs.rows}">
	Id ${row.id}<br />
	content ${row.content}<br />
	</c:forEach>
</body>
</html>